package com.youchuang.action.user;

import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

import com.youchuang.action.BaseAction;
import com.youchuang.common.Constant;

/**
 * 跳转登录
 * 
 * @author Administrator
 *
 */
@Namespace(value = "/user")
@ParentPackage("shopping-default")
public class ToLoginAction extends BaseAction{
	private Logger logger = Logger.getLogger(ToLoginAction.class.getSimpleName());

	@Action(value = "toLoginAction", results = {
			@Result(name = Constant.LOGIN_FORM, location = "/WEB-INF/jsp/user/login_form.jsp") })
	public String execute() {
		logger.info("execution is valiCheckCode");
		return Constant.LOGIN_FORM;
	}
}
